/* 基础样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Microsoft YaHei', sans-serif;
}

body {
  background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
  min-height: 100vh;
  padding: 20px;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.95);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

h1 {
  text-align: center;
  color: #2d3436;
  margin-bottom: 30px;
  font-size: 2.5em;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.input-section textarea {
  width: 100%;
  padding: 15px;
  border: 2px solid #4ecdc4;
  border-radius: 8px;
  font-size: 16px;
  margin-bottom: 20px;
  resize: vertical;
  transition: border-color 0.3s;
}

.input-section textarea:focus {
  outline: none;
  border-color: #ff6b6b;
}

.controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

button {
  background: #4ecdc4;
  color: white;
  border: none;
  padding: 15px 40px;
  border-radius: 25px;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(78, 205, 196, 0.4);
}

button:hover {
  background: #45b7b0;
  transform: translateY(-2px);
}

.result-box {
  width: 100%;
  min-height: 80px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  text-align: center;
  font-size: 24px;
  font-weight: bold;
  color: #2d3436;
  border: 2px dashed #4ecdc4;
}

.history-section {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 2px solid #eee;
}

.history-section h3 {
  color: #2d3436;
  margin-bottom: 15px;
}

#historyList {
  list-style: none;
}

#historyList li {
  padding: 10px;
  margin: 5px 0;
  background: #f8f9fa;
  border-radius: 5px;
  display: flex;
  justify-content: space-between;
  border-left: 4px solid #4ecdc4;
}